<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" version="4.0" encoding="iso-8859-1" indent="yes"/>
<xsl:template match="/">
	<xsl:variable name="Utilisateur" select="/GlobalVPLink2013/Utilisateur"/>
	<div id="encart-perso">
		<xsl:if test="not (/GlobalVPLink2013/Context/@Mode = 'PageInterne')">
			<xsl:attribute name="style">margin-bottom:65px;</xsl:attribute>
		</xsl:if>
		<div id="perso-top">
			<script type="text/javascript">
				<xsl:if test="/GlobalVPLink2013/Context/@Mode = 'PageInterne'">
						$(document).ready(function(){
							HideShowEncart2014();
						});
				</xsl:if>
			</script>
			<xsl:if test="/GlobalVPLink2013/Context/@Mode = 'PageInterne'">
				<div id="showHideEncart" style="float:right; margin:7px 15px 0 0;">
					<img src="/_layouts/15/VPLink2013/Images/cacher.jpg" />
				</div>
			</xsl:if>
		</div>                
		<div id="placesReserved">
			<xsl:if test="/GlobalVPLink2013/Context/@Mode = 'PageInterne'">
				<xsl:attribute name="style">display:none;</xsl:attribute>
				<xsl:attribute name="class">inner_page</xsl:attribute>
			</xsl:if>
			<ul>
				<xsl:choose>
					<xsl:when test="$Utilisateur/@IsMercure = '1' and $Utilisateur/@IsJedi = '0' and $Utilisateur/@IsManager = '1' and $Utilisateur/@IsVoyage = '0'">
						<li><a/></li>
						<li><a id="place-voyage" href="/services/VPVoyage"></a></li>
						<li class="lastPlace"><a id="place-voyage" href="/services/VPVoyage"></a></li>
					</xsl:when>
					<xsl:when test="$Utilisateur/@IsMercure = '1' and $Utilisateur/@IsJedi = '1' and $Utilisateur/@IsManager = '1' and $Utilisateur/@IsVoyage = '0'">
						<li><a id="place-mercure" href="/services/production/Mercure/"></a></li>
						<li><a id="place-manager" href="/espacemanager"></a></li>
						<li class="lastPlace"><a id="place-jedi" href="/espacejedi"></a></li>
					</xsl:when>
					<xsl:when test="$Utilisateur/@IsMercure = '1' and $Utilisateur/@IsJedi = '0' and $Utilisateur/@IsManager = '1' and $Utilisateur/@IsVoyage = '0'">
						<li><a/></li>
						<li><a id="place-mercure" href="/services/production/Mercure/"></a></li>
						<li class="lastPlace"><a id="place-manager" href="/espacemanager"></a></li>
					</xsl:when>
					<xsl:when test="$Utilisateur/@IsMercure = '1' and $Utilisateur/@IsJedi = '1' and $Utilisateur/@IsManager = '0' and $Utilisateur/@IsVoyage = '0'">
						<li><a/></li>
						<li><a id="place-mercure" href="/services/production/Mercure/"></a></li>
						<li class="lastPlace"><a id="place-jedi" href="/espacejedi"></a></li>
					</xsl:when>
					<xsl:when test="$Utilisateur/@IsMercure = '0' and $Utilisateur/@IsJedi = '1' and $Utilisateur/@IsManager = '1' and $Utilisateur/@IsVoyage = '0'">
						<li><a/></li>
						<li><a id="place-manager" href="/espacemanager"></a></li>
						<li class="lastPlace"><a id="place-jedi" href="/espacejedi"></a></li>
					</xsl:when>
					<xsl:when test="$Utilisateur/@IsMercure = '0' and $Utilisateur/@IsJedi = '1' and $Utilisateur/@IsManager = '1' and $Utilisateur/@IsVoyage = '1'">
						<li><a id="place-manager" href="/espacemanager"></a></li>
						<li><a id="place-jedi" href="/espacejedi"></a></li>
						<li class="lastPlace"><a id="place-voyage" href="/services/vpvoyage/pages/default.aspx"></a></li>
					</xsl:when>
					<xsl:when test="$Utilisateur/@IsMercure = '0' and $Utilisateur/@IsJedi = '0' and $Utilisateur/@IsManager = '1' and $Utilisateur/@IsVoyage = '1'">
						<li><a/></li>
						<li><a id="place-manager" href="/espacemanager"></a></li>
						<li class="lastPlace"><a id="place-voyage" href="/services/vpvoyage/pages/default.aspx"></a></li>
					</xsl:when>
					<xsl:when test="$Utilisateur/@IsMercure = '0' and $Utilisateur/@IsJedi = '1' and $Utilisateur/@IsManager = '0' and $Utilisateur/@IsVoyage = '1'">
						<li><a/></li>
						<li><a id="place-jedi" href="/espacejedi"></a></li>
						<li class="lastPlace"><a id="place-voyage" href="/services/vpvoyage/pages/default.aspx"></a></li>
					</xsl:when>
					<xsl:otherwise>
						<xsl:if test="$Utilisateur/@IsVoyage = '1'">
							<li><a id="place-voyage" href="/services/vpvoyage"></a></li>
						</xsl:if>
						<xsl:if test="$Utilisateur/@IsMercure = '1'">
							<li><a id="place-mercure" href="/services/production/Mercure/"></a></li>
						</xsl:if>
						<xsl:if test="$Utilisateur/@IsJedi = '1'">
							<li><a  id="place-jedi" href="/espacejedi"></a></li>
						</xsl:if>
						<xsl:if test="$Utilisateur/@IsManager = '1'">
							<li class="lastPlace"><a id="place-manager" href="/espacemanager"></a></li>
						</xsl:if>
					</xsl:otherwise>
				</xsl:choose>
			</ul>
		</div>
	</div>
  </xsl:template>
</xsl:stylesheet>